<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/resed.css">
    <link rel="stylesheet" href="font_2473277_4qodwciiw4q/iconfont.css">
</head>

<body>
    <!-- header  -->
    <div class="header">
        <div class="header-con w">
            <div class="header-con-a">
                <ul>
                    <li><a href="">小米商城</a> | </li>
                    <li><a href="">MIUI</a> |</li>
                    <li><a href="">IoT</a> |</li>
                    <li><a href="">云服务</a> | </li>
                    <li><a href=""> 天星数科</a>| </li>
                    <li><a href="">有品</a> |</li>
                    <li><a href="">小爱开放平台</a>| </li>
                    <li><a href="">企业团购</a>| </li>
                    <li><a href="">资质证照</a> |</li>
                    <li><a href="">协议规则</a> |</li>
                    <li><a href="">下载app</a>| </li>
                    <li><a href="">智能生活</a>| </li>
                    <li><a href="">Select Location</a></li>
                </ul>
            </div>
            <div class="header-con-b">
                <ul>
                    <li><a href="">登录 |</a> </li>
                    <li><a href="">注册 |</a> </li>
                    <li><a href="">消息通知</a> </li>
                </ul>
            </div>
            <div class="header-con-c">
                <a href="#">
                    <em>购物车</em>
                    <span class="header-con-c-cartNum">(5)</span>
                </a>
            </div>
        </div>
    </div>
    <!-- header结束 -->
    <!-- 二级导航 -->
    <div class="nav w">
        <div class="left">
            <a href="./index.html"><img src="./img/logo1.png" alt=""></a>
        </div>
        <div class="center">
            <ul>
                <li><a href="#">小米手机</a>
                    <ol class="center-z w">
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                    </ol>
                </li>
                <li><a href="#">小米手机</a>
                    <ol class="center-z w">
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                    </ol>
                </li>
                <li><a href="#">电视</a>
                    <ol class="center-z w">
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                    </ol>
                </li>
                <li><a href="#">笔记本</a>
                    <ol class="center-z w">
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                    </ol>
                </li>
                <li><a href="#">家电</a>
                    <ol class="center-z w">
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                    </ol>
                </li>
                <li><a href="#">路由器</a>
                    <ol class="center-z w">
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                    </ol>
                </li>
                <li><a href="#">智能硬件</a>
                    <ol class="center-z w">
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                        <li>
                            <img src="./img/2.png" alt="">
                            <span>小米MIX FOLD</span>
                            <em>9999元起</em>
                        </li>
                    </ol>
                </li>
                <li><a href="#">服务</a> </li>
                <li><a href="#">社区</a> </li>
            </ul>
        </div>
        <div class="right">
            <input type="text" value="电视">
            <input type="text" value="搜索" class="s">
        </div>
    </div>
    <!-- 二级导航结束 -->
    <!-- 详情页开始 -->
    <div class="Note5 w">
        <h2>Redmi Note 10 5G</h2>
        <div class="Note5-r">
            <div class="Note5-ra">Redmi Note 10 Pro</div>

            <ul>
                <a href="">
                    <li>概述页</li>
                    <li>参数页</li>
                    <li>F码通道</li>
                    <li>咨询客服</li>
                    <li>立即购买</li>
                </a>
            </ul>
        </div>
    </div>
    <!-- 2 -->
    <div class="facility w">
        为方便您购买，请提前登录
        <a href="">
            立即登录
        </a>
    </div>
    <!-- 3 -->
    <div class="small w">
        <div id="minbox">
            <div id="morebox"></div>
        </div>
        <ul>
            <li><img src="img/fdj.jpg" alt=""></li>
        </ul>
        <div id="bigbox">

        </div>
        <div class="RedminNo">
            <!-- <h2>Redmi Note 10 5G</h2> -->
            <span>「购机享6期免息；再赠价值897元善诊体检套餐；华夏信用卡分期支付满1500减60，数量有限」</span>
            <p>「购机享6期免息；再赠价值897元善诊体检套餐；华夏信用卡分期支付满1500减60，数量有限」</p>
            <span>小米自营</span>
            <h6>1099</h6>
            <div class="RedminNo-a">
                <p>
                    <sapn>北京</sapn>
                    <sapn>北京市</sapn>
                    <sapn>海淀区</sapn>
                    <sapn>清河街道</sapn>
                    <sapn></sapn>
                    <a href="">修改</a>
                </p>
                <span class="span1">有现货</span>
            </div>
            <p style="color: black; font-size: 18px;">选择版本</p>
            <div class="RedminNo-b">
                <div>
                    4GB+128GB
                </div>
                <div>
                    6GB+128GB
                </div>
                <div>
                    8GB+128GB
                </div>
                <div>
                    12GB+128GB
                </div>
            </div>
            <p style="color: black; font-size: 18px;">选择颜色</p>
            <div class="RedminNo-b">
                <div>
                    竹石青
                </div>
                <div>
                    晴山蓝
                </div>
                <div>
                    月影银
                </div>
                <div>
                    星云灰
                </div>
            </div>
            <div class="RedminNo-c">
                <div class="RedminNo-c-s">
                    <div>Redmi Note 10 5G 4GB+128GB 竹石青</div>
                    <div>1099元</div>
                </div>
                <div class="RedminNo-d">
                    总计: 1099元
                </div>
            </div>
            <div class="RedminNo-z">
                <div class="RedminNo-z-1">
                    <a href="">加入购物车</a>
                </div>
                <div class="RedminNo-z-2">
                    <a href="">喜欢</a>
                </div>
            </div>
            <div class="RedminNo-tg">
                <div>小米自营</div>
                <div>小米发货</div>
                <div>7天无理由退货</div>
                <div>运费说明</div>
                <div>企业信息</div>
                <div>7天价格保护</div>
            </div>
        </div>
    </div>
    <!-- 详情页结束 -->
    <div class="footer w">
        <div class="footerMsg">
            <div class="container">
                <ul class="fmUl">
                    <li>
                        <a href="">
                            <span class="iconfont icon-weibiaoti--"></span>
                            <span class="icoText">预约维修服务</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <span class="iconfont icon-7"></span>
                            <span class="icoText">7天无理由退货</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <span class="iconfont icon-15"></span>
                            <span class="icoText">15天免费换货</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <span class="iconfont icon-lihe"></span>
                            <span class="icoText">满69包邮</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <span class="iconfont icon-icon-test"></span>
                            <span class="icoText">520余家售后网店</span>
                        </a>
                    </li>
                </ul>
                <div class="fmNav">
                    <div class="fmText">
                        <h6>帮助中心</h6>
                        <p>账户管理</p>
                        <p>购物指南</p>
                        <p>订单操作</p>
                    </div>
                    <div class="fmText">
                        <h6>服务支持</h6>
                        <p>售后政策</p>
                        <p>自助服务</p>
                        <p>相关下载</p>
                    </div>
                    <div class="fmText">
                        <h6>线下门店</h6>
                        <p>小米之家</p>
                        <p>服务网点</p>
                        <p>授权体验店</p>
                    </div>
                    <div class="fmText">
                        <h6>关于小米</h6>
                        <p>了解小米</p>
                        <p>加入小米</p>
                        <p>投资者关系</p>
                        <p>企业社会责任</p>
                        <p>廉洁举报</p>
                    </div>
                    <div class="fmText">
                        <h6>关注我们</h6>
                        <p>新浪微博</p>
                        <p>官方微信</p>
                        <p>联系我们</p>
                        <p>公益基金会</p>
                    </div>
                    <div class="fmText">
                        <h6>特色服务</h6>
                        <p>F码通道</p>
                        <p>礼物码</p>
                        <p>防伪查询</p>
                    </div>
                </div>
                <div class="fmTextRight">
                    <p class="phone">400-100-5678</p>
                    <p class="time">8:00-18:00（仅收市话费）</p>
                    <div class="fmBtn">
                        <span class="iconfont icon-xinxi-01"></span> 人工客服
                    </div>
                    <p class="time2">
                        <span class="timeText">关注小米：</span>
                        <a href="https://passport.weibo.com/visitor/visitor?entry=miniblog&a=enter&url=https%3A%2F%2Fweibo.com%2Fxiaomishangcheng&domain=.weibo.com&sudaref=https%3A%2F%2Fwww.mi.com%2F&ua=php-sso_sdk_client-0.6.36&_rand=1628662454.9678">
                            <em class="wbIco icoImg"></em>
                        </a>
                        <em class="wxIco icoImg"></em>
                    </p>
                </div>
            </div>
        </div>
    </div>
    <div class="footerBottom w">
        <div class="container">
            <div class="fbLeft">
                <img src="img/logo1.png"></div>
            <div class="fbRight">
                <ul class="fbrUl">
                    <li>
                        <a href="">小米商城</a>|</li>
                    <li>
                        <a href="">MIUI</a>|</li>
                    <li>
                        <a href="">米家</a>|</li>
                    <li>
                        <a href="">米聊</a>|</li>
                    <li>
                        <a href="">多看</a>|</li>
                    <li>
                        <a href="">游戏</a>|</li>
                    <li>
                        <a href="">小米天猫店</a>|</li>
                    <li>
                        <a href="">小米集团隐私政策</a>|</li>
                    <li>
                        <a href="">小米公司儿童信息保护规则</a>|</li>
                    <li>
                        <a href="">小米商城隐私政策</a>|</li>
                    <li>
                        <a href="">小米商城用户协议</a>|</li>
                    <li>
                        <a href="">Select Location</a><br></li>
                    <li>
                        <a href="">北京互联网法院法律服务工作站</a>|</li>
                    <li>
                        <a href="">中国消费者协会</a>|</li>
                    <li>
                        <a href="">北京市消费者协会</a>|</li>
                </ul>
                <div class="fbTextP">
                    <p>◎mi.com京ICP证110507号京ICP备10046444号京公网安备11010802020134号京网文[2020]0276-042号</p>
                    <p>(京)网械平台备字(2018) 第00005号 互联网药品信息服务资格证(京)-非经营性-2014-0090营业执照医疗器械质量公告</p>
                    <p>增值电信业务许可证网络食品经营备案京食药网食备202010048食品经营许可证</p>
                    <p>违法和不良信息举报电话: 171-5104-4404 知识产权侵权投诉本网站所列数据，除特殊说明， 所有数据均出自我司实验室测试</p>
                </div>
                <div class="ftIng">
                    <img src="img/35.png">
                    <img src="img/36.png">
                    <img src="img/37.png">
                    <img src="img/38.png">
                    <img src="img/39.png">
                </div>
                <!-- <div class="ftBg">
                    <img src="./img/foterBg.png">
                </div> -->
            </div>
        </div>
    </div>
</body>

</html>
<script src="./jquery.js"></script>
<script>
    $.get("xiangqin.php", {
        typen: "1"
    }, function(data) {
        console.log(data);
        let goodslist = JSON.parse(data)
        console.log(typeof goodslist);

    })





    class DAJ {
        constructor(ominbox, omorebox, obigbox) {
                this.ominbox = ominbox;
                this.omorebox = omorebox;
                this.obigbox = obigbox;
            }
            // 设置鼠标移入
        yiru() {
            let that = this;
            this.ominbox.onmouseover = function() {
                that.omorebox.style.display = 'block';
                that.obigbox.style.display = 'block';
            }
        }
        yichu() {
            let that = this;
            this.ominbox.onmouseout = function() {
                that.omorebox.style.display = 'none';
                that.obigbox.style.display = 'none';
            }
        }
        huadong() {
            let that = this;
            this.ominbox.onmousemove = function(evt) {
                let e = evt || event;
                let left = e.pageX - this.offsetLeft - that.omorebox.offsetWidth / 2;
                let top = e.pageY - this.offsetTop - that.omorebox.offsetHeight / 2
                let x = that.obigbox.offsetWidth * left / that.ominbox.offsetWidth;
                let y = that.obigbox.offsetHeight * top / that.ominbox.offsetHeight;
                if (left < 0) {
                    left = 0;
                }
                if (top < 0) {
                    top = 0;
                }
                let leftmax = this.offsetWidth - that.omorebox.offsetWidth;
                if (left > leftmax) {
                    left = leftmax;
                }
                let topmax = this.offsetHeight - that.omorebox.offsetHeight;
                if (top > topmax) {
                    top = topmax;
                }
                that.omorebox.style.left = left + 'px';
                that.omorebox.style.top = top + 'px';
                that.obigbox.style.backgroundPositionX = -x + 'px';
                that.obigbox.style.backgroundPositionY = -y + 'px';
            }
        }
        tioayong() {
            let that = this;
            for (let i = 0; i < olis.length; i++) {
                olis[i].onmouseover = function() {
                    ominbox.style.background = `url(./img/${[i]}.jpg)`;
                    ominbox.style.backgroundSize = '200px ' + '200px';
                    obigbox.style.background = `url(./img/${[i]}.jpg)`;
                    obigbox.style.backgroundSize = '800px ' + '800px';
                }
            }
        }
    }
    let olis = document.querySelectorAll('li');
    let ominbox = document.querySelector('#minbox');
    let omorebox = document.querySelector('#morebox');
    let obigbox = document.querySelector('#bigbox');
    let b = new DAJ(ominbox, omorebox, obigbox);
    b.yiru();
    b.yichu();
    b.huadong();
    b.tioayong();
</script>